package de.mhu.mandalaui.actions;

import java.io.PrintWriter;

import de.mhu.mandalaui.bind.Element;

public abstract class Action extends Element {

	@Override
	public void renderBindCall(PrintWriter out) {
		renderFunctionName(out);
	}

	public void renderFunctionName(PrintWriter out) {
		out.print(getWindow().getId() + "." + getId());
	}
	
	public void renderFunctionCall(PrintWriter out) {
		renderFunctionName(out);
		out.println("();");
	}
	
	public void renderGet(PrintWriter out) {
		renderFunctionName(out);
		out.print("()");
	}
	
}
